export function reorder() {
  if (localStorage.getItem("fieldOrderList")) {
    let orderList: any;
    orderList = JSON.parse(localStorage.getItem("fieldOrderList"));
    let indexMap = orderList.reduce((map, item, index) => {
      map[item.value] = index;
      return map;
    }, {});
    // 使用映射来重新排序 newStepSchema
    newStepSchema.value.sort((a, b) => {
      return indexMap[a.field] - indexMap[b.field];
    });
  }
}
